package ch1;

import java.util.Scanner;

public class Zuoye03108 {
    public static void main(String[] args) {
//        Scanner scan=new Scanner(System.in);
//        System.out.println("请输入五位整数：");
        int[] a=new int[5];
        int b=0;
        double c=1;
        Scanner scan=new Scanner(System.in);
        System.out.println("请输入五位整数：");
        for (int i=0;i<a.length;i++){
            a[i]=scan.nextInt();
            b=b+a[i];
            c=c*a[i];
        }
        System.out.println("数组的和为："+b+"\n乘积为："+c);

    }

}
